package cn.zyjblogs.server.user.dto;

import cn.zyjblogs.starter.common.entity.dto.PageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页查询
 *
 * @author zhuyijun
 */
@ApiModel(description = "用户查询dto")
@Data
@NoArgsConstructor
public class UserPageDto extends PageDto {
    @ApiModelProperty(value = "账号（用户名）")
    private String username;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "状态")
    private Integer status;

    @Builder
    public UserPageDto(Integer page, Integer limit, String username, String name, Integer age, String phone, String email, Integer status) {
        super(page, limit);
        this.username = username;
        this.name = name;
        this.phone = phone;
        this.email = email;
        this.status = status;
    }
}
